package com.zyh.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zyh.server.entity.MiaoshaGoods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zyh.server.vo.MiaoshaGoodsVO;

/**
* @author ZYH
* @description 针对表【t_miaosha_goods】的数据库操作Service
* @createDate 2024-11-18 09:50:32
*/
public interface MiaoshaGoodsService extends IService<MiaoshaGoods> {

	/**
	 * 分页查询秒杀商品
	 * @param pageNum
	 * @param pageSize
	 * @param goodsName
	 * @return
	 */
	IPage<MiaoshaGoodsVO> findGoodsByPage(Integer pageNum, Integer pageSize, String goodsName);

	/**
	 * 查询一个秒杀商品详情
	 * @param id
	 * @return
	 */
	MiaoshaGoodsVO miaoshaGoodsDetails(Integer id);

}
